<?php $this->load->view('admins/header'); ?>
<?php $this->load->view('admins/menu'); ?>
<div class="container conter">
    <?php $this->load->view('admins/user/menu'); ?>
    <div class="body">
        <?php echo form_open_multipart('admins/user_admin/doEdit'); ?>
        <input type="hidden" name="uid" value="<?php echo isset($user['uid'])?$user['uid']:''; ?>" />
        <div class="side">
            <dl>
                <dt><label for="email"><?php echo lang('email'); ?></label></dt>
                <dd><input type="text" name="mail" value="<?php echo isset($user['mail'])?$user['mail']:''; ?>" /></dd>
            </dl>
            <dl>
                <dt><label for="password"><?php echo lang('password'); ?></label></dt>
                <dd><input type="text" name="password" /></dd>
            </dl>
        </div>
        <div class="main">
            <dl>
                <dt><label for="screenName"><?php echo lang('screenName'); ?></label></dt>
                <dd><input type="text" name="screenName" value="<?php echo isset($user['screenName'])?$user['screenName']:''; ?>" /></dd>
            </dl>
            <dl>
                <dt><label for="activated"><?php echo lang('activated'); ?></label></dt>
                <dd><select name="activated">
                    <option value="1" <?php echo (isset($user['activated']) && $user['activated']=='1')?'selected="selected"':''; ?>>正常</option>
                    <option value="2" <?php echo (isset($user['activated']) && $user['activated']=='2')?'selected="selected"':''; ?>>禁止</option>
                </select></dd>
            </dl>
            <dl>
                <dt><label for="group"><?php echo lang('group'); ?></label></dt>
                <dd><select name="group">
                    <option value="administrator" <?php echo (isset($user['group']) && $user['group']=='administrator')?'selected="selected"':''; ?>>超级管理员</option>
                    <option value="manager" <?php echo (isset($user['group']) && $user['group']=='manager')?'selected="selected"':''; ?>>管理员</option>
                    <option value="user" <?php echo (isset($user['group']) && $user['group']=='user')?'selected="selected"':''; ?>>用户</option>
                </select></dd>
            </dl>
            <dl>
                <dt><label>&nbsp;</label></dt>
                <dd><input class="input-submit" type="submit" value="<?php echo lang('submitAdd'); ?>" /></dd>
            </dl>
        </div>
        </form>
    </div>
</div>
<?php $this->load->view('admins/uploadjs'); ?>
<?php $this->load->view('admins/footer'); ?>